package com.machine.filling.net.ws.network;

import okhttp3.Response;
import okhttp3.WebSocket;
import okio.ByteString;

/**
 * Created by sperfan on 2018/3/1.
 *
 * @描述: websocket 回调
 */

public interface IWebSocketCallback {

    void onOpen(WebSocket webSocket, Response response);

    void onMessage(WebSocket webSocket,String text, ByteString bytes);

    void onFinalFailureResult(WebSocket webSocket, int code, String reason,Response response);
}
